import requests
url = "http://www.pxu.edu.cn/"
headers = {
    'User-Agent':'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'
}
resp = requests.get(url,headers=headers)
resp.encoding="utf-8"
resp_text = resp.text
fo = open("D:\\萍乡学院.html","w",encoding="utf-8")
fo.write(resp_text)
fo.close()
print("完成")

